import request from '@/utils/request'

// 获取列表数据
export const getTagListAPIs = params => {
  return request({
    url: 'ydd_article/list',
    params
  })
}

// 查询单个标签
export const getTagInfoApi = params => {
  return request({
    url: 'ydd_article/rowInfo',
    method: 'GET',
    params: params
  })
}


// 增加标签
export const addTagApi = data => {
  return request({
    url: 'ydd_article/add',
    method: 'POST',
    data
  })
}

// 修改标签
export const editTagApi = data => {
  return request({
    url: 'ydd_article/update',
    method: 'POST',
    data
  })
}
// 删除标签
export const delTagInfoApi = params => {
  return request({
    url: 'ydd_article/del',
    method: 'GET',
    params
  })
}

export const ShangTagInfoApi = data => {
  return request({
    url: 'common/upload?type=images',
    method: 'POST',
    data
  })
}

/// 查询标签列表
export const getTagListApis = (params) => {
  return request({
    url: '/ydd_cate/list',
    method: 'get',
    params: params
  })
}
